package com.project.weimi.activity;

import com.project.weimi.R;
import com.project.weimi.utils.SetClickListener;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ExchangeRecordActivity extends BaseActivity{

	private Button btn_exchange;
	
	
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentViewWithBar(R.layout.activity_exchange_record, "兑换记录");
		
		initView();
		
	}
	
	private void initView(){
		btn_exchange = (Button)findViewById(R.id.btn_exchange);
		
		// 监听
		SetClickListener.setClickListener(listener, btn_exchange);
		
	}
	
	private OnClickListener listener = new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			
			switch (v.getId()) {
			case R.id.btn_exchange: // 跳转到“首页”
				Intent intent = new Intent(ExchangeRecordActivity.this,MainActivity.class);
				intent.putExtra("fragId", 0);
				startActivity(intent);
				break;

			default:
				break;
			}
			
			
		}
	};
	
	
	
	@Override
	void setStatusBar(int statusBarColorRes) {
		super.setStatusBar(R.color.transparent_3);
	}
	
}
